<template>
  <view class="my-search" :style="{backgroundColor:bgc}" @click="clickEvent">
    <view class="box" :style="{borderRadius:radius+'rpx'}">
      <uni-icons type="search" size="30"></uni-icons>搜索
    </view>
  </view>
</template>

<script>
  export default {
    name: "my-search",
    props: {
      bgc: {
        type: String,
        default: '#c00000'
      },
      radius: {
        type: Number,
        default: 40
      }
    },
    data() {
      return {

      };
    },
    methods: {
      clickEvent() {
        this.$emit('click')
      }
    }
  }
</script>

<style lang="scss" scoped>
  .my-search {
    padding: 20rpx;
    // background-color: #c00000;

    .box {
      height: 80rpx;
      background-color: #ffffff;
      // border-radius: 40rpx;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
</style>